behave mswin
set nocompatible
set nu
set noswapfile
set nowrap
set background=dark
syntax enable
set autoindent
set nobackup
set history=50
set ruler
set showcmd
set cin
set shiftwidth=4
set softtabstop=4
set tabstop=4
set enc=cp936 fencs=utf-8,cp936
set backspace=indent,eol,start
set guioptions-=m
set guioptions-=T
set guioptions-=L
set statusline+=%f
set selectmode+=mouse
set guifont=YaHei\ Consolas\ Hybrid:h12
set ignorecase
set noic
set showmatch
set incsearch
colorscheme desert

let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1

map <F1> :NERDTreeToggle<CR>
map <F2> :NERDTreeMirror<CR>
map <F3> :wall<CR>
map <F4> :wqall<CR>
map <F5> :TlistToggle<CR>
let Tlist_WinWidth = 30
let Tlist_Use_Right_Window=1
let Tlist_Use_SingleClick=1
map <F8> :! ctags -R .<CR>

" Python
let mapleader=","
map <silent><leader>p :!python %<ENTER>
map <silent><leader>d :!python -m pdb %<ENTER>

inoremap jj <ESC>